Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

338
Views
Error: Could not get the file's extension |How do save an image to Media Library in React Native Expo
    import * as FileSystem from 'expo-file-system';
    import * as MediaLibrary from 'expo-media-library';

   const handleDownloadImage = async () => {
        await MediaLibrary.requestPermissionsAsync();
        const localuri = await FileSystem.downloadAsync(
            'https://64.media.tumblr.com/a92e72902106507c59ff8d0ca26abfc0/1d7f633f39b0a908-34/s1280x1920/a7073bbdeb1033b989e040fd216266be8ba31341.jpg',
            FileSystem.documentDirectory + 'demo.jpg'
        );
        const asset = await MediaLibrary.createAssetAsync(localuri.toString());
        const album = await MediaLibrary.createAlbumAsync('DownLoads', asset);
        console.log(album);
    };

I was unable to save an image to the download folder, I used expo without 2 folders android and ios

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!